<?php
//Start session
if (!isset($_SESSION))
{
    session_start();
}
?>
<?php
////Unset the variables stored in session
unset($_SESSION['SESS_USER_ID']);
unset($_SESSION['SESS_USER_NAME']);
setcookie('username', '', time()-3600);
setcookie('password', '', time()-3600);

header("location: index.php");
exit();
?>